std::strpbrk

From Cppreference

Jump to: navigation, search
Defined in header <cstring>

const char* strpbrk( const char* dest, const char* str );

​      char* strpbrk(       char* dest, const char* str );

Finds the first character in character string pointed to by dest, that is also in character string pointed to by str.

Contents

Parameters

dest - pointer to the null-terminated character string to be analyzed
src - pointer to the null-terminated character string that contains the characters to search for

Return value

pointer to the first character in dest, that is also in str.

Example

See also

strcspn
returns the length of the maximum initial segment that consists
of only the characters not found in another character string
(function)
strchr
finds the first occurrence of a character
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages